from aiogram.types import InlineKeyboardButton, InlineKeyboardMarkup, KeyboardButton, ReplyKeyboardMarkup




GET_INFO_BUTTON = KeyboardButton("Открыть таблицу") 
GET_FILE_BUTTON = KeyboardButton("Получить файл")


COMMON_KEYBOARD = ReplyKeyboardMarkup(row_width=1, one_time_keyboard=True).add(GET_INFO_BUTTON, GET_FILE_BUTTON)

INLINE_CONTROL_PANEL = InlineKeyboardMarkup(row_width=1)\
    .add(InlineKeyboardButton('\U000027A1', callback_data='next'), InlineKeyboardButton('\U00002B05', callback_data='back'))

def gen_reply_keyboard(labels):
    keyboard = InlineKeyboardMarkup(row_width=1)
    for label in labels:
        if (label != 'Общий график ТО СРД'):
            keyboard.add(InlineKeyboardButton(label, callback_data=label))
    return keyboard
